﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Mobile.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Đăng ký
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
<%--    <h2>Tạo tài khoản mới</h2>
    <p>
        Use the form below to create a new account. 
    </p>
    <p>
        Passwords are required to be a minimum of <%= Html.Encode(ViewData["PasswordLength"]) %> characters in length.
    </p>--%>

    <% using (Html.BeginForm("register", "account", FormMethod.Post, new { id = "ddForm", name = "đdForm" }))
       { %>
        <%--<%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>--%>
        <div>
            <fieldset>
                <legend>Thông tin tài khoản</legend>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.UserName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Email) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Email) %>
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.FullName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.FullName) %>
                    <%= Html.ValidationMessageFor(m => m.FullName) %>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Address) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Address) %>
                    <%= Html.ValidationMessageFor(m => m.Address) %>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Phone) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Phone) %>
                    <%= Html.ValidationMessageFor(m => m.Phone) %>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Company) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Company) %>
                    <%= Html.ValidationMessageFor(m => m.Company) %>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Yahoo) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Yahoo)%>
                    <%= Html.ValidationMessageFor(m => m.Yahoo)%>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Skype) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Skype)%>
                    <%= Html.ValidationMessageFor(m => m.Skype)%>
                </div>
<%--                <tr>
				    <td><label for="name"> Nhập mã xác thực&nbsp;(<font style="color:Red">*</font>)</label></td>
						<td>
							<%= Html.TextBox("CaptchaText", string.Empty, new { @class = "required" })%>&nbsp;<a id="myCaptcha" onclick="ChangeCaptcha();"><img id="captchaImg"  name="captchaImg" src="<%=Url.Action("ShowCaptchaImage", "AjaxData", new {area="" })%>" style="vertical-align:middle; height:30px" alt="Click vào ảnh để làm mới" /></a>
						</td>
						<td></td>
				</tr>--%>                              
                <p>
                    <input type="submit" value="Đăng ký" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
